//
//  MarkerImageTableViewCell.m
//  XinKaiFa55like
//
//  Created by 55like on 2017/9/26.
//  Copyright © 2017年 55like lj. All rights reserved.
//

#import "MarkerImageTableViewCell.h"



@implementation MarkerImageTableViewCell
{
    
    
    
    
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self=[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        
        PLTextView * textview =[[PLTextView alloc]initWithFrame:CGRectMake(10, 10, kScreenWidth - 20, 70)];
        textview.delegate = self;
        [self addSubview:textview];
        textview.Placeholder=@"请填写备注信息";
        textview.font=Font(15);
        self.textview = textview;
    
        AddImageView*  imageEditorV = [[AddImageView alloc] initWithFrame:CGRectMake(0,  YH(textview), kScreenWidth, (kScreenWidth - 20)/4)];
        [self addSubview:imageEditorV];
        self.imageEditorV = imageEditorV;

       
    }
    return self;
}
-(void)textViewDidChange:(UITextView*)textView{
    
    
    NSLog(@"%@",textView.text);
    
    if (self.textblock) {
        self.textblock(textView.text);
    }
    
    
    
}
-(UIView *)line{
    
    if (!_line) {
        
        UIView * line = [RHMethods lineViewWithFrame:CGRectMake(0, self.frameHeight - 1, kScreenWidth, 1)];
        [self addSubview:line];
        _line = line;
   
    }
    
    
    return _line;
}

@end
